package com.xbongbong.pro.domain.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 审批迁移到工作流
 * @author 吴峰
 * @date 2021/11/03 10:53
 */
@Getter
@Setter
@ToString
public class PaasProcessDataMigrateEntity {

    private Long id;

    private String corpid;

    private Long formId;

    private Integer saasMark;

    private Integer businessType;

    /**
     * 审批数据id
     */
    private Long processDataId;

    /**
     * 审批模板id
     */
    private Long templateId;

    /**
     * 审批任务id
     */
    private Long processTaskId;

    /**
     * 工作流模板id
     */
    private Long workflowId;

    /**
     * 工作流流转任务id
     */
    private Long workflowTaskId;

    /**
     * 主表数据id
     */
    private Long dataId;

    /**
     * 主表数据是否是新增的，0不是，1是
     */
    private Integer type;

    /**
     * 迁移失败的原因
     */
    private String reason;

    /**
     * 创建时间
     */
    private Long addTime;
    /**
     * @see com.xbongbong.paas.enums.DelEnum
     * 删除标记
     */
    private Integer del;

    public PaasProcessDataMigrateEntity(String corpid, Long formId, Integer saasMark, Integer businessType, Long processDataId, Long templateId, Long processTaskId, Long workflowId, Long dataId, Integer type, String reason, Long addTime, Integer del) {
        this.corpid = corpid;
        this.formId = formId;
        this.saasMark = saasMark;
        this.businessType = businessType;
        this.processDataId = processDataId;
        this.templateId = templateId;
        this.processTaskId = processTaskId;
        this.workflowId = workflowId;
        this.dataId = dataId;
        this.type = type;
        this.reason = reason;
        this.addTime = addTime;
        this.del = del;
        this.workflowTaskId = 0L;
    }

    public PaasProcessDataMigrateEntity() {
    }
}
